<?php

$GLOBALS['MYSQL_CONNECT'] = mysql_connect(DB_HOST, DB_USER, DB_PASS);
if (!$GLOBALS['MYSQL_CONNECT']) {
    die('Could not connect: ' . mysql_error());
}

$res = mysql_select_db(DB_BASE) or die(mysql_error());
mysql_query("SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8'");

